package com.atguigu.yygh.hosp.service;

import com.atguigu.yygh.model.hosp.Department;
import com.atguigu.yygh.vo.hosp.DepartmentQueryVo;
import com.atguigu.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @author:ahang
 * @create:2022-09-02 21:05
 * @Description:
 */
public interface DepartmentService {
    void save(Map<String, Object> map);

    Page<Department> selectPage(int page, int limit, DepartmentQueryVo departmentQueryVo);

    void remove(String hoscode, String depcode);

    //根据医院编号获取科室树
    List<DepartmentVo> findDeptTree(String hoscode);

    //根据医院编号和科室编号获取科室名称
    String getDepName(String hoscode, String depcode);

    //根据医院编号和部门编号查询科室
    Department getDepartment(String hoscode, String depcode);
}
